package com.imagination.applet.domain.aiimage.service;

import com.alibaba.fastjson.JSONObject;
import com.imagination.applet.controller.api.request.AddAIImageRequest;
import com.imagination.applet.controller.api.request.cropReq;
import com.imagination.applet.domain.aiimage.model.AIImage;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface AIImageCommandService {

    List<AIImage> createGeneratedImage(String channel, String topic, MultipartFile image);

    JSONObject crop(cropReq cropReq, MultipartFile file) throws Exception;

    void createGeneratedImage(AddAIImageRequest request, MultipartFile image);
}
